package entity;

import java.io.Serializable;

/**
 * 编程实现class类的封装
 */
public class ClassGrade implements Serializable {
    private int classId; //班级编号
    private String className; //班级名称
    private String gradeName; //年级
    private String leaderName; //班主任名称
    private String classSlogan; //班级口号
    private int classPeoples; //班级人数

    public ClassGrade() {
    }

    public ClassGrade(int classId, String className, String gradeName, String leaderName, String classSlogan, int classPeoples) {
        this.classId = classId;
        this.className = className;
        this.gradeName = gradeName;
        this.leaderName = leaderName;
        this.classSlogan = classSlogan;
        this.classPeoples = classPeoples;
    }

    public ClassGrade(String className, String gradeName, String leaderName, String classSlogan, int classPeoples) {
        this.className = className;
        this.gradeName = gradeName;
        this.leaderName = leaderName;
        this.classSlogan = classSlogan;
        this.classPeoples = classPeoples;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public String getLeaderName() {
        return leaderName;
    }

    public void setLeaderName(String leaderName) {
        this.leaderName = leaderName;
    }

    public String getClassSlogan() {
        return classSlogan;
    }

    public void setClassSlogan(String classSlogan) {
        this.classSlogan = classSlogan;
    }

    public int getClassPeoples() {
        return classPeoples;
    }

    public void setClassPeoples(int classPeoples) {
        this.classPeoples = classPeoples;
    }

    @Override
    public String toString() {
        return "Class{" +
                "classId=" + classId +
                ", className='" + className + '\'' +
                ", gradeName='" + gradeName + '\'' +
                ", leaderName='" + leaderName + '\'' +
                ", classSlogan='" + classSlogan + '\'' +
                ", classPeoples=" + classPeoples +
                '}';
    }
}
